package cards;

public class BlackjackDealer extends Player {
	
	public void dealerAI(Deck currentDeck) {
			if((this.currentHand.getScore()<17) || (this.currentHand.getScore()==17 && this.currentHand.containsAce())) {
				this.currentHand.addCard(currentDeck.draw());
			}
	}
	
	public String toString() {
		String output ="Dealers hand consists of: ";
		for(int i = 0; i < this.currentHand.hand.size(); i++) {
			output += "\n " + this.currentHand.hand.get(i).toString();
		}
		output += "\nWith a total score of: "+this.currentHand.getScore();
		return output;
	}
	
}
